<?php
require_once "backend/Config.php";

class Menu extends HTMLable {
	public function __construct($loggedIn, $prefix) {
		$home = $prefix;
		$login = $prefix."/login.php";
		$logout = $prefix."/proc/proc_login.php?act=logout";
		
		$this->html = "
		<ul id=\"menu\">
			<li><a href=\"".$home."\">Home</a></li>
			<li><a href=\"".$home."/browse.php\">Browse</a></li>";
			
		if ($loggedIn) { $this->html .= "
			<li><a href=\"".$logout."\">Logout</a></li>";
		}
		else $this->html .= "
			<li><a href=\"".$login."\">Login/Register</a></li>";
		
		$this->html .= "
		</ul>";
	}
	
	public function genHTML() {}
}
?>
